package com.yaoxuguang.concurrence.thread_state.block;

/**
 * @author yaoxuguang
 * @Title: yao-interview
 * @Package com.yaoxuguang.concurrence.thread_state.block
 * @Description: TODO
 * @date 2018年12月26日11:24
 */
public class MyServer {
    synchronized public static void serverMethod(){
        try {
            System.out.println(Thread.currentThread().getName()+"进入业务方法...");
            Thread.sleep(10000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
